package com.example.zzl.view.fragment.UserFragment;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Window;

import com.example.zzl.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/2/15.
 */
public class GuanyuActivity extends AppCompatActivity{

    private List<String> list;
    private List<Integer>list1;

    private GuanyuAdapter adapter;

    private Mylist mylist;

    private Toolbar toolbar;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.gunanyu);
        mylist=(Mylist)findViewById(R.id.lv);
        toolbar=(Toolbar)findViewById(R.id.toolbar);
        toolbar.setNavigationIcon(R.drawable.back);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
                overridePendingTransition(R.anim.activity_close,0);
            }
        });
        init();

    }

    private void init() {
        list=new ArrayList<>();
        list1=new ArrayList<>();
        list.add("检查更新");
        list.add("意见反馈");
        list.add("关注我们");
        list.add("服务条款");
        list.add("查看欢迎页");
adapter=new GuanyuAdapter(this,list);
        mylist.setAdapter(adapter);

    }
}
